import java.net.InetAddress;


public class Neighbour {

	private int id, port, cost;
	private InetAddress ip;
	
	public Neighbour(int id, int cost, int port, String address) throws Exception {
		this.id = id;
		this.cost = cost;
		this.port = port;
		this.ip = InetAddress.getByName(address);
	}
	
	public Neighbour(int id, int cost, int port, InetAddress address) throws Exception {
		this.id = id;
		this.cost = cost;
		this.port = port;
		this.ip = address;
	}
	
	public int getId() {
		return id;
	}
	
	public int getCost() {
		return cost;
	}
	
	public int getPort() {
		return port;
	}
	
	public InetAddress getIp() {
		return ip;
	}
	
}
